package com.bingxue.edu.management.education.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 创建或修改学生选课权限
 *
 * @author zq
 * @since 2024/08/22 00:02
 */
@Data
@Schema(description = "创建或修改学生选课权限")
public class EnrollPermissionReq {

    @Schema(description = "学生id")
    @Length(max = 32, message = "学生id长度不能超过 {max} 个字符")
    private String studentId;

    @Schema(description = "科目")
    @NotNull(message = "班级等级不能为空")
    @Length(max = 32, message = "科目长度不能超过 {max} 个字符")
    private String subject;

    @Schema(description="班级等级")
    @NotNull(message = "班级等级不能为空")
    private Integer classLevel;

    @Schema(description = "入学年份")
    @NotNull(message = "班级等级不能为空")
    private Integer admissionYear;
}
